package com.loren.demo25.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class DemoController {

    @GetMapping("/demo")
    public String demo() {
        log.debug("log level = {}", "debug");
        log.info("log level = {}", "info");
        log.warn("log level = {}", "warn");
        log.error("log level = {}", "error");
        return "demo";
    }

}
